package com.acorn.community.web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author 田士伟
 */
@EnableAsync
@RefreshScope
@EnableDiscoveryClient
@EnableFeignClients("com.acorn")
@ComponentScan(basePackages = "com.acorn")
@SpringBootApplication(scanBasePackages = "com.acorn.community")
@MapperScan("com.acorn.community.**.mapper")
public class CommunityApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(CommunityApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
